package com.artisan.common.enums;

/**
 * Created by szw on 2017/6/18.
 */
public enum AttachmentTypeEnum {

	Message("留言附件"),
	Evaluate("用户评价附件");


	private String display;
	private AttachmentTypeEnum(String display) {
		this.display = display;
	}

	public String getDisplay() {
		return display;
	}

	/**
	 *
	 * @param str
	 * @return
	 */
	public static boolean isValid(String str) {
		for (AttachmentTypeEnum type : values()) {
			if (type.name().equals(str)) {
				return true;
			}
		}
		return false;
	}
}
